package com.yuyou.fn.educational.service.impl;

import com.github.wens.mybatisplus.examples.Example;
import org.springframework.stereotype.Service;

import com.yuyou.fn.educational.mapper.CustomerBindStudentMapper;
import com.yuyou.fn.educational.entity.CustomerBindStudent;
import com.yuyou.fn.educational.service.ICustomerBindStudentService;
import com.github.wens.framework.service.impl.SuperServiceImpl;

import java.util.List;

/**
 *
 * CustomerBindStudent 表数据服务层接口实现类
 *
 */
@Service
public class CustomerBindStudentServiceImpl extends SuperServiceImpl<CustomerBindStudentMapper, CustomerBindStudent,Long> implements ICustomerBindStudentService {
    @Override
    public List<CustomerBindStudent> findStudentsByUserIds(Long userId) {
        Example<CustomerBindStudent> example=CustomerBindStudent.createExample();
        example.createCriteria().andEqualTo("userId",userId);

        return  findListByExample(example);
    }
}